package net.hcdz.identity.dao.impl;

import java.util.List;

import net.hcdz.identity.bean.User;
import net.hcdz.identity.dao.UserDaoI;
import net.hcdz.identity.dao.base.impl.HibernateDaoImpl;


public class UserDao extends HibernateDaoImpl implements UserDaoI{
	@Override
	public List<String> getUserByIdAll() {
		String hql = "from User u";
		return this.find(hql);
	}
	@Override

	public List<User> getUserAll() {
		String hql = "from User u where u.delFlag = 1";
		return this.find(hql);
	}
	@Override
	public List<User> getUserByName(String userId) {
		String hql = "from User u where u.userName = '"+userId+"'";
		return this.find(hql);
	}
}
